<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8" />
	<title>千郡医疗-申请代理</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<meta name="format-detection" content="telephone=no" />
	<link rel="stylesheet" th:href="@{/weixin/css/style.css}" />
	<link rel="stylesheet" th:href="@{/weixin/css/weui.min.css}" />
	<script type="text/javascript" th:src="@{/weixin/js/adaptive.js}"></script>
	<script type="text/javascript" th:src="@{/weixin/js/fastclick.min.js}"></script>
	<script type="text/javascript" th:src="@{/weixin/js/zepto.min.js}"></script>
	<script type="text/javascript" th:src="@{/weixin/js/weui.min.js}"></script>
	<style type="text/css">
	 body{font-size: initial !important;}
	</style>
</head>
<body>
	<section class="agentPage">
		<ul>
			<li>
				<p>姓名</p>
				<p><input type="text" th:value="${customer.name}" class="txt" readonly="readonly" /></p>
			</li>
			<li>
				<p>手机号码</p>
				<p><input type="tel" th:value="${customer.phoneNo}" class="txt" readonly="readonly" /></p>
			</li>
		</ul>
		<p class="btm">
			<a href="javascript:;" id="submit" class="comBtn">提交申请</a>
		</p>
	</section>
	<script type="text/javascript">
	$(function(){
		$("#submit").click(function() {
			var l = weui.loading("正在提交");
			$.get("/qianjun/weixin/customer/applysupplier", function(ret){
				l.hide();
				if(!ret.success){
					weui.alert(ret.msg);
					return;
				}
				weui.toast("申请成功，等待管理员审核");
				setTimeout('location.href = "/qianjun/weixin/customer"', 500);
			})
						
		})
	})
	
	</script>
</body>
</html>